<#setting number_format = "#"/>
<#setting datetime_format = dateTimeFormat/>
<#assign logged = logged?default(false)/>
<#assign language = language?default("en_US")/>
<#assign hasCodeBlock = hasCodeBlock?default(false)/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<style type="text/css">@import url( ${contextPath}/templates/${templateName}/styles/style.css?${startupTime} );</style>
<style type="text/css">@import url( ${contextPath}/templates/${templateName}/styles/${language}.css?${startupTime} );</style>
<style type="text/css">@import url( ${contextPath}/templates/${templateName}/styles/test.css?${startupTime} );</style>
<style type="text/css">
 li {                                  
  white-space:nowrap;        
  text-overflow:ellipsis;    
  -o-text-overflow:ellipsis; 
  overflow: hidden;          
  }     
            
</style>
<title>${pageTitle?default("openEdv")?html}</title>
 
<script language="javascript">
function AddFavorite(sURL, sTitle)
{
  try
   {window.external.addFavorite(sURL, sTitle);
   }
   catch (e)
   { try
       { window.sidebar.addPanel(sTitle, sURL, "");
       }
       catch (e)
       {alert("加入收藏失败，请使用Ctrl+D进行添加");
       }
   }
}
</script>
 
</head>
<body class="${language}">
 
  <div id="homeHeader" >
  
   <div id="logoImage">
   	  <img src="${contextPath}">
   </div>
    <div id="headContent">
     <div style="float:left;margin-left:150px;margin-top:40px;" align=center>
     <span><a href="${JForumContext.encodeURL("/forums/list")}">进入论坛<img src="http://www.fwvv.net/Upload/editor/download.gif"/></a></span>
     </div>
     <div style="margin-top:12px;float:right;">
     <div>
     <font style="color:green;">
      <#if logged >
        ${session.username},   
     </#if> 
      </font>
     	 <font style="color:green;"> 您好,欢迎您!&nbsp; &nbsp;</font>
      <#if logged > 
     	 <font>
     	 <a  href="${JForumContext.encodeURL("/pm/inbox")}">
											<#if (session.privateMessages > 0)>
											  <img src="${contextPath}/templates/${templateName}/images/newpm.gif" border="0"  />
												${I18n.getMessage("ForumBase.newPm")}: (${session.privateMessages})  
											<#else>
												收件箱  
											</#if>
		 </a>
		 |
     	</font>
      </#if>	
 
     	 <font>
     	 	<#if !logged >
						<a href="${JForumContext.encodeURL("/user/insert")}"> ${I18n.getMessage("ForumBase.register")}</a></span> |
						<a href="${JForumContext.encodeURL("/user/login")}"> ${I18n.getMessage("ForumBase.login")}</a>&nbsp; </span>
			  <#else>
			      <a  href="${JForumContext.encodeURL("/user/logout")}">${I18n.getMessage("ForumBase.logout")} [${session.username}] </a></span>
				</#if>
     	 </font>
      </div>	
      <div style="float:rigth;margin-top:10px;">
         <a  onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.openedv.com')">设为首页 |</a>
         <a  onclick="AddFavorite('http://www.openedv.com','开源电子网');">加入收藏</a>   	 </font>      </div> 
      </div>
     </div>
   </div>
   
   <div   id="home" >
       
           <a class="hide" href="${homepageLink}" style="width:150px;">&nbsp;&nbsp;单片机技术 |</a>
       	   <a class="hide" href="${JForumContext.encodeURL("/forums/list")}" style="width:150px;" >&nbsp;STM32 |&nbsp;</a> 
           <a class="hide" href="${JForumContext.encodeURL("/search/filters")}"  style="width:150px;" >&nbsp;电子设计大赛 |&nbsp;</a> 
           <a class="hide" href="${JForumContext.encodeURL("/allTopics/list")}"  style="width:150px;">&nbsp;电源技术 |&nbsp;</a>
           <a class="hide" href="${JForumContext.encodeURL("/kuTopics/list")}"" style="width:150px;">&nbsp;模拟电路 |&nbsp;</a>
           <a class="hide" href="${JForumContext.encodeURL("/recentTopics/list")}"  style="width:150px;">&nbsp;数字电路&nbsp;</a>
    </div>
    
    <div  class="gonggao">
    </div>
    
   
     <div id="hot">
        <div id="left1" >
           <div > 
             <div class="titleCss" align=center> <a href="${JForumContext.encodeURL("/kuTopics/list")}" class="more">更多&nbsp;»</a>精华帖子 </div>
           </div>
           <div>
            <ul>
            <#list kuTopics as topic>
            <li><a href="${JForumContext.encodeURL("/posts/list/${topic.id}${extension}","")}" target="_blank">${topic.title?html}</a></li>
            </#list>
         </ul>
          </div>
        </div> 
        <div id="right1">
         <div  class="titleCss"  > 
            <div class="titleCss" align=center> <a href="#" class="more">更多&nbsp;»</a>本周热门 </div>
          </div>
        <div> 
       <ul>
          <#list topicsWeeklyHot as topic>
            <li><a href="${JForumContext.encodeURL("/posts/list/${topic.id}${extension}","")}" target="_blank">${topic.title?html}</a></li>
          </#list>
       </ul>
      </div>
      </div>
     </div>
 
 
 
      <div id="hot">
        <div id="left1">
            <div  class="titleCss"  > 
             <div class="titleCss" align=center> <a href="${JForumContext.encodeURL("/topicsByPublishTime/list")}" class="more">更多&nbsp;»</a>最新发表 </div>
             
           </div>
           <div>
            <ul>
            <#list topicsByPublishTime as topic>
            <li  ><a href="${JForumContext.encodeURL("/posts/list/${topic.id}${extension}","")}" target="_blank">${topic.title?html}</a></li>
           </#list>
            </ul>
          </div>
        </div> 
        <div id="right1">
         <div  class="titleCss"  > 
            <div class="titleCss" align=center> <a href="${JForumContext.encodeURL("/recentTopics/list")}" class="more">更多&nbsp;»</a>最新回复 </div>
            
         </div>
        <div> 
        <ul>
          <#list recentTopics as topic>
            <li><a href="${JForumContext.encodeURL("/posts/list/${topic.id}${extension}","")}" target="_blank">${topic.title?html}</a></li>
           </#list>
      </ul>
      </div>
      </div>
     </div>
  
       <div style="align:center;width:900px;margin:0px auto;">
        <div   style="
                      float:left;
                      text-align:left;
                      width:900px; 
                      height:170px;
                      border: 1px solid #176eac;
                      background-color:#F8F8F8;
                      margin-top:15px;">
      </div>
      <div id="bottomContent" >
		<div align="center" >
			<#if session?exists && session.isAdmin()><span class="gen"><a id="adminpanel" href='${JForumContext.encodeURL("/admBase/login")}'>${I18n.getMessage("ForumBase.admin")}</a></span></#if>
		</div>
		<div align="center" style="margin-top:8px;">
<#--			<span class="copyright">Powered by <a class="copyright" href="${JForumContext.encodeURL("/forums/list")}" target="_blank">ALIENTEK工作室 </a> &copy; <a class="copyright" href="${JForumContext.encodeURL("/forums/list")}" target="_blank">ALIENTEK</a></span>
-->
 			<span class="copyright">Powered by <a class="copyright" href="http://shop62057469.taobao.com/" target="_blank">ALIENTEK工作室 </a> &copy; <a class="copyright" href="http://shop62057469.taobao.com/" target="_blank">2001-2010 www.openedv.com</a></span>


 		</div>
</div>
     </div>
  

 
 
 </body>

